
<div class="layui-btn-container layui-col-xs4">
    {foreach $toolbardemo as $value}
    {if $value['type']=='alldel'}
        <button class="layui-btn layui-btn-danger demoTable {$value['class']}" style="{$value['style']}" lay-event="alldel" data-action="{$value['action']}">{$value['desc']|default="全部删除"}</button>
    {/if}

    {if $value['type']=='add'}
        <button class="layui-btn layui-btn-normal demoTable {$value['class']}" style="{$value['style']}" lay-event="add" data-action="{$value['action']}">{$value['desc']|default="添加"}</button>
    {/if}

    {if $value['type']=='back'}
        <button class="layui-btn layui-btn-normal demoTable {$value['class']}" style="{$value['style']}" lay-event="back" data-action="{$value['action']}">{$value['desc']|default="返回"}</button>
    {/if}

    {if $value['type']=='text'}
        <button class="layui-btn {$value['class']}" style="{$value['style']}">{$value['desc']|default="没设置"}</button>
    {/if}

    {if $value['type']=='a'}
    <a href="{$value['action']}" class="layui-btn{$value['class']}" style="{$value['style']}">{$value['desc']|default="没设置"}</a>
    {/if}
    {/foreach}
 </div>
{foreach $toolbardemo as $value}
{if $value['type']=='search'}
 <div class="layui-col-xs4">
     <select id="sousuos"  style="position: absolute;left: -20%;min-width: 20%" class="layui-select layui-col-md2 demoTables" lay-event="xuanz" lay-ignore>
         <option value="">选择搜索</option>
         {foreach $value['option'] as $va}
         <option value="{$va['field']}">{$va['field_name']}</option>
         {/foreach}
     </select>
     <input class="layui-input layui-col-md4" style="max-width: 500px" name="tiaojian" id="sousuo" placeholder="搜索条件" type="text" value="">
     <button class="layui-btn demoTable" style="position: absolute;right: 0px" lay-event="reload">{$value['desc']|default="搜索"}</button>
 </div>
{/if}
<!-- <div class="layui-col-xs4">-->

<!-- </div>-->
{/foreach}